export interface general {
  code: number
  message: string
  ok: boolean
}

export interface dataType {
  bookingRule: {
    cycle: number
    releaseTime: string
    stopTime: string
    quitDay: number
    quitTime: string
    rule: []
  }
  hospital: {
    id: string
    createTime: string
    updateTime: string
    isDeleted: number
    param: {
      hostypeString: string
      fullAddress: string
    }
    hoscode: string
    hosname: string
    hostype: string
    provinceCode: string
    cityCode: string
    districtCode: string
    address: string
    logoData: string
    intro: string
    status: number
    bookingRule: boolean
  }
}

export interface detail extends general {
  data: dataType
}

// 单一科室
export interface department {
  depcode: string
  depname: string
  children: department[]
}

// 科室类型
export type departTYPE = department[]

// 完成科室类型
export interface departmentList extends general {
  data: departTYPE
}

// 排班类型
export interface schedule {
  workDate: string
  workDateMd: string
  dayOfWeek: string
  docCount: number
  reservedNumber: number
  availableNumber: number
  status: number
}

// 排班list
export type scheduleList = schedule[]

// map
export interface mapCon {
  workDateString: string
  releaseTime: string
  bigname: string
  stopTime: string
  depname: string
  hosname: string
}

// data
export interface bookingScheduleList {
  total: number
  bookingScheduleList: scheduleList
  baseMap: mapCon
}
// 排班表
export interface workingSchedule extends general {
  data: bookingScheduleList
}
// 单个医生信息
export interface oneDoc {
  id: string
  createTime: string
  updateTime: string
  isDeleted: number
  param: {
    dayOfWeek: string
    depname: string
    hosname: string
  }
  hoscode: string
  depcode: string
  title: string
  docname: string
  skill: string
  workDate: string
  workTime: number
  reservedNumber: number
  availableNumber: number
  amount: number
  status: number
  hosScheduleId: string
}
// 医生数组
export type docList = oneDoc[]
// 医生type
export interface docType extends general {
  data: docList
}

//代表的是一个就诊人数据ts类型
export interface User {
  id: number
  createTime: string
  updateTime: string
  isDeleted: number
  param: {
    certificatesTypeString: string
    contactsCertificatesTypeString: string
    cityString: null
    fullAddress: string
    districtString: null
    provinceString: null
  }
  userId: number
  name: number
  certificatesType: string
  certificatesNo: string
  sex: number
  birthdate: string
  phone: string
  isMarry: number
  provinceCode: null
  cityCode: null
  districtCode: null
  address: string
  contactsName: string
  contactsCertificatesType: string
  contactsCertificatesNo: string
  contactsPhone: string
  isInsure: number
  cardNo: null
  status: string
}
export type UserArr = User[]
export interface UserResponseData extends general {
  data: UserArr
}
// doc
export interface doc {
  id: string
  createTime: string
  updateTime: string
  isDeleted: number
  param: {
    dayOfWeek: string
    depname: string
    hosname: string
  }
  hoscode: string
  depcode: string
  title: string
  docname: string
  skill: string
  workDate: string
  workTime: number
  reservedNumber: number
  availableNumber: number
  amount: number
  status: number
  hosScheduleId: string
}
export interface dutyDoc extends general { 
    data:doc
}